﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Cadastros_Aluno_cadastro" Codebehind="Aluno_cadastro.aspx.cs" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function Close() {
            GetRadWindow().close();
        }

        function CloseWithArg() {
            var customArg = document.getElementById('ctm_cad_diretiva_id').value;
            GetRadWindow().close(customArg);
        }

        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }

        function RowClick(sender, eventArgs) {
            //alert("Click on row instance: " + eventArgs.getDataKeyValue("CTM_PLANO_MANUTENCAO_SERVICO_ID"));
            document.getElementById('hid_aluno_id').value = eventArgs.getDataKeyValue("CTM_PLANO_MANUTENCAO_SERVICO_ID");
        }

        function onTabSelecting(sender, args) {
            var tab = args.get_tab().get_text();
            var aluno = document.getElementById('aluno_id').value;

            if ((tab == "Materiais") && (aluno != "")) {
                //$find("rapMateriais").ajaxRequest("load");
            }

        }



        //      função para retornar um vetor de argumentos para pagina de origem
        function returnToParent() {
            //crear argumento para retorno a pagina pai
            var oArg = new Object();
            //obter dados da diretiva
            oArg.diretivaID = document.getElementById('hid_aluno_id').value
            oArg.diretivaDesc = "Descricao";
            alert(oArg.diretivaID);
            return false;
        }

        //função do Evento Click Grid-Reponsaveis
        function rdg_Responsavel_RowClick(sender, eventArgs) {
            //alert(eventArgs.getDataKeyValue("RESPONSAVEL_ALUNO_ID"));
            $find("rapResponsaveis").ajaxRequest(eventArgs.getDataKeyValue("RESPONSAVEL_ALUNO_ID"));
        }

        //função do Evento Click Grid-Enderecos
        function rdg_Enderecos_RowClick(sender, eventArgs) {
            $find("rapEnderecos").ajaxRequest(eventArgs.getDataKeyValue("ENDERECO_ID"));
        }

        //função do Evento Click Grid-Matriculas
        function rdg_Matriculas_RowClick(sender, eventArgs) {
            $find("rapMatriculas").ajaxRequest(eventArgs.getDataKeyValue("MATRICULA_ID"));
        }


        //função do Evento Click Grid-Materiais
        function rdg_MaterialAluno_RowClick(sender, eventArgs) {
            document.getElementById('hid_ALUNO_MATERIAL_ID').value = eventArgs.getDataKeyValue("ALUNO_MATERIAL_ID");

        }
        //função do Evento Click Grid-Eventos
        function rdg_rdg_EventoAluno_RowClick(sender, eventArgs) {
            document.getElementById('hid_ALUNO_EVENTO_ID').value = eventArgs.getDataKeyValue("ALUNO_EVENTO_ID");

        } 
        
        //função do para carregar os pagamentos do Aluno
        function btnPagamento_Click() {
            $find("rapMensalidades").ajaxRequest("load");

        }

        //função imprimir pagamentos dos Materiais adiquiridos pelo Aluno
        function PrintRecMaterial(id, rowIndex) {
            document.getElementById('hid_ALUNO_MATERIAL_ID').value = id;
            $find("imgbEmitirRecMaterial").click();
            
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">

    <asp:ObjectDataSource ID="ods_profissao" runat="server"  
        SelectMethod="_obter_Profissao" TypeName="Banco.BD_Profissao"> 
        <SelectParameters> 
            <asp:Parameter Name="PROFISSAO_ID" Type="String" /> 
            <asp:Parameter Name="PRF_DESCRICAO" Type="String" /> 
            <asp:Parameter Name="PRF_EXCLUIDO" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Responsavel" runat="server"  
        SelectMethod="_obter_Responsavel_Aluno" TypeName="Banco.BD_Responsavel" 
        DeleteMethod="_excluir_Responsavel" onselecting="ods_Responsavel_Selecting"> 
        <DeleteParameters>
            <asp:Parameter Name="RESPONSAVEL_ALUNO_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters> 
            <asp:Parameter Name="RESPONSAVEL_ID" Type="String" /> 
            <asp:Parameter Name="SOLICITANTE_ID" Type="String" /> 
            <asp:Parameter Name="PESSOA_ID" Type="String" />
            <asp:Parameter Name="ALUNO_ID" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Motivo_ingresso" runat="server"  
        SelectMethod="_obter_Motivo_ingresso" TypeName="Banco.BD_Motivo_ingresso"> 
        <SelectParameters> 
            <asp:Parameter Name="MOTIVO_INGRESSO_ID" Type="String" /> 
            <asp:Parameter Name="MOT_DESCRICAO" Type="String" /> 
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Academia" runat="server"  
        SelectMethod="_obter_Academia" TypeName="Banco.BD_Academia"> 
        <SelectParameters> 
            <asp:Parameter Name="ACADEMIA_ID" Type="String" /> 
            <asp:Parameter Name="ACD_DESCRICAO" Type="String" /> 
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Endereco_tipo" runat="server"  
        SelectMethod="_obter_Endereco_tipo" TypeName="Banco.BD_Endereco_tipo"> 
        <SelectParameters> 
            <asp:Parameter Name="ENDERECO_TIPO_ID" Type="String" /> 
            <asp:Parameter Name="EDT_DESCRICAO" Type="String" /> 
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Endereco" runat="server"  
        SelectMethod="_obter_Endereco" TypeName="Banco.BD_Endereco" 
        onselecting="ods_Endereco_Selecting" DeleteMethod="_excluir_Endereco"> 
        <DeleteParameters>
            <asp:Parameter Name="ENDERECO_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters> 
            <asp:Parameter Name="ENDERECO_ID" Type="String" />
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="RESPONSAVEL_ID" Type="String" />
            <asp:Parameter Name="ENDERECO_TIPO_ID" Type="String" /> 
            <asp:Parameter Name="END_LOGRADOURO" Type="String" /> 
            <asp:Parameter Name="END_NUMERO" Type="String" />
            <asp:Parameter Name="END_COMPLEMENTO" Type="String" />
            <asp:Parameter Name="END_BAIRRO" Type="String" />
            <asp:Parameter Name="END_CIDADE" Type="String" />
            <asp:Parameter Name="END_CEP" Type="String" />
            <asp:Parameter Name="END_UF" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>
    
    
    <asp:ObjectDataSource ID="ods_Matriculas" runat="server" 
        DeleteMethod="_excluir_Matricula" onselecting="ods_Matricula_Selecting" 
        SelectMethod="_obter_Matricula_Aluno" TypeName="Banco.BD_Matricula">
        <DeleteParameters>
            <asp:Parameter Name="MATRICULA_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters>
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="TODAS" Type="Boolean" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Turmas" runat="server"  
        SelectMethod="_obter_Turma" TypeName="Banco.BD_Turma" 
        onselecting="ods_Turmas_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="TURMA_ID" Type="String" />
            <asp:Parameter Name="MODALIDADE_ID" Type="String" />
            <asp:Parameter Name="SALA_ID" Type="String" />
            <asp:Parameter Name="TURNO_ID" Type="String" />
            <asp:Parameter Name="NIVEL_ID" Type="String" />
            <asp:Parameter Name="TUR_DESCRICAO" Type="String" />
            <asp:Parameter Name="TUR_DTCRIACAO" Type="String" />
            <asp:Parameter Name="TUR_DTFORMACAO" Type="String" />
            <asp:Parameter Name="TUR_DTFECHAMENTO" Type="String" />
            <asp:Parameter Name="TUR_MODALIDACOBRANCA" Type="String" />
            <asp:Parameter Name="TUR_QTMENSALIDADES" Type="String" />
            <asp:Parameter Name="TUR_STEXCLUIDO" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Modalidades" runat="server"  
        SelectMethod="_obter_Modalidade" TypeName="Banco.BD_Modalidade"> 
        <SelectParameters> 
            <asp:Parameter Name="MODALIDADE_ID" Type="String" />
            <asp:Parameter Name="MOD_DESCRICAO" Type="String" />
            <asp:Parameter Name="MOD_EXCLUIDO" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Bolsas" runat="server"  
        SelectMethod="_obter_bolsa" TypeName="Banco.BD_bolsa" 
        OldValuesParameterFormatString="original_{0}"> 
        <SelectParameters> 
            <asp:Parameter Name="BOLSA_ID" Type="String" />
            <asp:Parameter Name="BOL_DESCRICAO" Type="String" />
            <asp:Parameter Name="BOL_MODALIDADE" Type="String" />
            <asp:Parameter Name="BOL_DESCONTOVALOR" Type="String" />
            <asp:Parameter Name="BOL_DESCONTOPERC" Type="String" />
            <asp:Parameter Name="BOL_DTVIGENCIAINCIO" Type="String" />
            <asp:Parameter Name="BOL_DTVIGENCIAFIM" Type="String" />
            <asp:Parameter Name="BOL_STEXCLUIDO" Type="String" />
            <asp:Parameter Name="BOL_INTEGRAL" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Convenios" runat="server"  
        SelectMethod="_obter_Convenio" TypeName="Banco.BD_Convenio"> 
        <SelectParameters> 
            <asp:Parameter Name="CONVENIO_ID" Type="String" />
            <asp:Parameter Name="CNV_DESCRICAO" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Pagamentos" runat="server"  
        SelectMethod="_obter_Pagamento_Conciliacao" TypeName="Banco.BD_Pagamento" 
        onselecting="ods_Pagamentos_Selecting" 
        OldValuesParameterFormatString="original_{0}"> 
        <SelectParameters> 
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="MATRICULA_ID" Type="String" />
            <asp:Parameter Name="MENSALIDADES_EM_ABERTO" Type="String" />
            <asp:Parameter Name="PAG_ANOREFERENCIA" Type="String" />
            <asp:Parameter Name="PAG_MESREFERENCIA" Type="String" />
            <asp:Parameter Name="SOMENTE_MENSALIDADES_EM_ABERTO" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_PagamentoAno" runat="server"  
        SelectMethod="_obter_Ano_Pagamento_Aluno" TypeName="Banco.BD_Pagamento" 
        onselecting="ods_PagamentoAno_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="MATRICULA_ID" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Nivel" runat="server"  
        SelectMethod="_obter_Nivel" TypeName="Banco.BD_Nivel" 
        onselecting="ods_Nivel_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="NIVEL_ID" Type="String" />
            <asp:Parameter Name="NIV_DESCRICAO" Type="String" />
            <asp:Parameter Name="ST_EXCLUIDO" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_FromaPagamento" runat="server"  
        SelectMethod="_obter_Forma_pagamento" TypeName="Banco.BD_Forma_pagamento"> 
        <SelectParameters> 
            <asp:Parameter Name="FORMA_PAGAMENTO_ID" Type="String" />
            <asp:Parameter Name="FPG_DESCRICAO" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>
        
    <asp:ObjectDataSource ID="ods_Materiais" runat="server" 
        DeleteMethod="_excluir_Aluno_material" onselecting="ods_Material_Selecting" 
        SelectMethod="_obter_Material" TypeName="Banco.BD_Aluno_material">
        <DeleteParameters>
            <asp:Parameter Name="ALUNO_MATERIAL_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters>
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="MATERIAL_ID" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_MaterialVigente" runat="server"  
        SelectMethod="_obter_Material" TypeName="Banco.BD_Material" 
        onselecting="ods_MaterialVigente_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="MATERIAL_ID" Type="String" />
            <asp:Parameter Name="MATERIAL_MODALIDADE_ID" Type="String" />
            <asp:Parameter Name="MTR_DESCRICAO" Type="String" />
            <asp:Parameter Name="MTR_VALOR" Type="String" />
            <asp:Parameter Name="MTR_QUANTIDADEDISP" Type="String" />
            <asp:Parameter Name="MTR_VALIDADE" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
            <asp:Parameter Name="MTR_VIGENTE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_Evento" runat="server"  
        SelectMethod="_obter_Evento" TypeName="Banco.BD_Aluno_evento" 
        onselecting="ods_Material_Selecting" DeleteMethod="_excluir_Aluno_evento"> 
        <DeleteParameters>
            <asp:Parameter Name="ALUNO_EVENTO_ID" Type="String" />
        </DeleteParameters>
        <SelectParameters> 
            <asp:Parameter Name="ALUNO_ID" Type="String" />
            <asp:Parameter Name="EVENTO_ID" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ods_EventoVigente" runat="server"  
        SelectMethod="_obter_Evento" TypeName="Banco.BD_Evento" 
        onselecting="ods_EventoVigente_Selecting"> 
        <SelectParameters> 
            <asp:Parameter Name="EVENTO_ID" Type="String" />
            <asp:Parameter Name="EVENTO_MODALIDADE_ID" Type="String" />
            <asp:Parameter Name="EVT_DESCRICAO" Type="String" />
            <asp:Parameter Name="EVT_DTREALIZACAO" Type="String" />
            <asp:Parameter Name="EVT_DTINSCRICAOINI" Type="String" />
            <asp:Parameter Name="EVT_DTINSCRICAOFIM" Type="String" />
            <asp:Parameter Name="EVT_STEXCLUIDO" Type="String" />
            <asp:Parameter Name="EVT_VALOR" Type="String" />
            <asp:Parameter Name="SOLICITANTE_ID" Type="String" />
            <asp:Parameter Name="ORDER_BY_CLAUSE" Type="String" />
            <asp:Parameter Name="EVT_VIGENTE" Type="String" />
        </SelectParameters> 
    </asp:ObjectDataSource>

    <asp:HiddenField ID="hid_operacao" runat="server" />    
    <asp:HiddenField ID="hid_pessoa_id" runat="server" />
    <%--<asp:HiddenField ID="hid_responsavel_pessoa_id" runat="server" />--%>    <%--<asp:HiddenField ID="hid_responsavel_aluno_id" runat="server" />--%>    <%--<asp:HiddenField ID="hid_responsavel_id" runat="server" />--%>    <%--<asp:HiddenField ID="hid_endereco_id" runat="server" />--%>    <%--<asp:HiddenField ID="hid_matriculaSelect" runat="server" />--%>

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" 
            MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Vista" 
            ontabclick="RadTabStrip1_TabClick" onclienttabselecting="onTabSelecting">            
            <Tabs>
                <telerik:RadTab runat="server" Text="Dados Cadastrais" Selected="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Responsáveis">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Endereços" Visible="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Matriculas">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Mensalidades">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Materiais">
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Eventos">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" 
            Width="850px">
            <%--===========================================================================
                        DADOS CADASTRAIS
            ===============================================================================--%>
            <telerik:RadPageView ID="RadPageView1" runat="server">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                         <td>
                                <div style="float:left; margin-left:5px; width:11%; margin-top:8px;">
                                        <asp:Label ID="lbl_aluno_id" runat="server" Text="Código" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                        <telerik:RadTextBox ID="aluno_id" Runat="server" Font-Size="X-Small" 
                                            Width="97%" 
                                           ReadOnly="true">
                                           <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox>
                                    </div>
                                    <div style="float:left; margin-left:10px; width:45%">
                                        <asp:Label ID="lbl_pes_nome" runat="server" Text="Nome" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                        <asp:RequiredFieldValidator ID="rfv_pes_nome" runat="server" ControlToValidate="pes_nome"
                                            ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosDadosAlu"></asp:RequiredFieldValidator>
                                        <telerik:RadTextBox ID="pes_nome" Runat="server" Font-Size="X-Small" 
                                            Width="97%" 
                                           ReadOnly="false">
                                           <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox>
                                    </div>
                                    <div style="float:left; margin-left:10px; width:30%; margin-top:8px;">
                                        <asp:Label ID="lbl_pes_email" runat="server" Text="E-mail" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                        <telerik:RadTextBox ID="pes_email" Runat="server" Font-Size="X-Small" 
                                            Width="97%" 
                                           ReadOnly="false">
                                           <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox>                                        
                                    </div>
                                    <div style="float:right; margin-right:5px; width:10%; margin-top:8px;">
                                        <asp:Label ID="lbl_pes_estadocivil" runat="server" Text="Estado civil" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                        <telerik:RadComboBox ID="pes_estadocivil" runat="server" 
                                                                        Font-Size="X-Small" Width="100%" Filter="Contains" 
                                                                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                                        EnableLoadOnDemand="True" 
                                                                        style="margin-bottom: 0px">                        
                                                        <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text="Solteiro" Value="S" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Casado" Value="C" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Viúvo" Value="V" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Separado" Value="P" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Divorciado" Value="D" />
                                                        </Items>
                                                        </telerik:RadComboBox>
                                    </div>
                                    <%--linha--%>
                                    <div style="float:left; margin-left:0px; width:100%;" >
                                    
                                        <div style="float:left; margin-left:5px; width:11%;" >
                                            <asp:Label ID="lbl_pes_dtnascimento" runat="server" Text="Data nasc." 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>  
                                             <asp:RequiredFieldValidator ID="rfv_pes_dtnascimento" runat="server" ControlToValidate="pes_dtnascimento"
                                                ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosDadosAlu"></asp:RequiredFieldValidator>      
                                            <telerik:RadDateInput ID="pes_dtnascimento" Font-Size="X-Small" Width="97%" runat="server">
                                            </telerik:RadDateInput>
                                        </div>
                                        <div style="float:left; margin-left:10px; width:10%; margin-top:8px;">
                                            <asp:Label ID="lbl_pes_cpf" runat="server" Text="CPF" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <telerik:RadMaskedTextBox ID="pes_cpf" runat="server" 
                                                Font-Size="X-Small" Mask="&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;.&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;.&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;-&lt;0..9&gt;&lt;0..9&gt;" 
                                                Width="100%">
                                            </telerik:RadMaskedTextBox>
                                        </div>
                                        <div style="float:left; margin-left:10px; width:10%; margin-top:8px;">
                                            <asp:Label ID="lbl_pes_rg" runat="server" Text="RG" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                            <telerik:RadTextBox ID="pes_rg" Runat="server" Font-Size="X-Small" 
                                                Width="97%" 
                                               ReadOnly="false">
                                               <ReadOnlyStyle BackColor="#D6DCDB" />
                                            </telerik:RadTextBox>
                                        </div>
                                        <div style="float:left; margin-left:10px; width:10%; margin-top:8px;">
                                            <asp:Label ID="lbl_aluTelefoneFixo" runat="server" Text="Fone Resid." 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                            <telerik:RadTextBox ID="txbaluTelefoneFixo" Runat="server" Font-Size="X-Small" 
                                                Width="97%" 
                                                ReadOnly="false">
                                                <ReadOnlyStyle BackColor="#D6DCDB" />
                                            </telerik:RadTextBox>
                                        </div>
                                         <div style="float:left; margin-left:10px; width:10%; margin-top:8px;">
                                            <asp:Label ID="lbl_aluTelefoneMovel" runat="server" Text="Fone Celular" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                            <telerik:RadTextBox ID="txbaluTelefoneMovel" Runat="server" Font-Size="X-Small" 
                                                Width="97%" 
                                                ReadOnly="false">
                                                <ReadOnlyStyle BackColor="#D6DCDB" />
                                            </telerik:RadTextBox>
                                        </div>
                                        <div style="float:left; margin-left:10px; width:15%; margin-top:5px;">
                                            <asp:Label ID="lbl_alu_stexcluido" runat="server" Text="Situação" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <br />
                                            <asp:RadioButtonList ID="alu_stexcluido" runat="server" Font-Size="X-Small" 
                                                RepeatDirection="Horizontal">
                                                    <asp:ListItem Selected="True" Value="0">Ativo</asp:ListItem>
                                                    <asp:ListItem Value="1">Inativo</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                        <div style="float:right; margin-right:5px; width:25%; margin-top:8px;">
                                            <asp:Label ID="lbl_profissao_id" runat="server" Text="Profissão" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                            <telerik:RadComboBox ID="profissao_id" runat="server" 
                                                                        Font-Size="X-Small" Width="100%" DataTextField="PRF_DESCRICAO" 
                                                                        DataValueField="PROFISSAO_ID" Filter="Contains" 
                                                                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                                        EnableLoadOnDemand="True" onitemsrequested="profissao_id_ItemsRequested" 
                                                                        style="margin-bottom: 0px">                        
                                                        </telerik:RadComboBox>
                                        </div>
                                    </div>
                                    <%--linha--%>
                                    <div style="float:left; margin-left:0px; width:100%;" >
                                         <div style="float:left; margin-left:5px; width:44%; margin-top:8px;">
                                                <asp:Label ID="lbl_motivo_ingresso_id" runat="server" Text="Motivo de ingresso na Escola" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                                <telerik:RadComboBox ID="motivo_ingresso_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="MOT_DESCRICAO" 
                                                    DataValueField="MOTIVO_INGRESSO_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione um Tipo" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="motivo_ingresso_id_ItemsRequested" 
                                                    style="margin-bottom: 0px">                        
                                                </telerik:RadComboBox>
                                            </div>
                                            <div style="float:right; margin-right:5px; width:53%; margin-top:5px;">
                                                <asp:Label ID="lbl_academia_id" runat="server" Text="Academia de Dança anterior" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                                <telerik:RadComboBox ID="academia_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="ACD_DESCRICAO" 
                                                    DataValueField="ACADEMIA_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="academia_id_ItemsRequested" 
                                                    style="margin-bottom: 0px">                        
                                                </telerik:RadComboBox>
                                            </div>
                                    </div>
                                    <%--linha--%>
                                    <div style="float:left; margin-left:0px; width:100%;" >
                                        <div style="float:left; margin-left:5px; width:44%; margin-top:5px; margin-bottom:0px;">
                                            <asp:Label ID="lbl_alu_medicamento" runat="server" Text="Medicamentos que utiliza" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <telerik:RadTextBox ID="alu_medicamento" Runat="server" Font-Size="X-Small" 
                                                Width="97%" ReadOnly="false">
                                           <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox> 
                                        </div>
                                        <div style="float:right; margin-right:5px; width:53%; margin-top:5px;">
                                            <asp:Label ID="lbl_convenio_id" runat="server" Text="Convênio Médico" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <telerik:RadComboBox ID="convenio_id" runat="server" 
                                                Font-Size="X-Small" Width="100%" DataTextField="CNV_DESCRICAO" 
                                                DataValueField="CONVENIO_ID" Filter="Contains" 
                                                EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                EnableLoadOnDemand="True" onitemsrequested="convenio_id_ItemsRequested" 
                                                style="margin-bottom: 0px">                        
                                            </telerik:RadComboBox>
                                        </div>
                                    </div>
                                    <%--linha--%>
                                    <div style="float:left; margin-left:0px; width:100%;" >
                                        <div style="float:left; margin-left:5px; width:44%; margin-top:5px; margin-bottom:0px;">
                                            <asp:Label ID="lbl_alu_motivo_ingresso" runat="server" Text="Informações sobre o ingresso do Aluno" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <telerik:RadTextBox ID="alu_motivo_ingresso" Runat="server" Font-Size="X-Small" 
                                                Width="97%" 
                                                ReadOnly="false" TextMode="MultiLine" Rows="3">
                                                <ReadOnlyStyle BackColor="#D6DCDB" />
                                            </telerik:RadTextBox>
                                        </div>                            
                                        <div style="float:right; margin-right:5px; width:53%; margin-top:5px;">
                                            <asp:Label ID="lbl_alu_indicaomedica" runat="server" Text="Indicações médicas para ingresso do Aluno" 
                                                Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                            <telerik:RadTextBox ID="alu_indicaomedica" Runat="server" Font-Size="X-Small" 
                                                Width="97%" 
                                                ReadOnly="false" TextMode="MultiLine" Rows="3">
                                                <ReadOnlyStyle BackColor="#D6DCDB" />
                                            </telerik:RadTextBox>
                                        </div>
                                    </div>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <div style="float: right; margin-right: 0px; margin-top: 5px;">
                                <asp:ImageButton ID="imgbCancelar" runat="server" ImageUrl="~/Imagens/botoes_pagina_retornar.png"
                                    OnClientClick="Close(); return false;" />
                            </div>
                            <div style="float: right; margin-right: 5px; margin-top: 5px;">
                                <asp:ImageButton ID="imgbConfirmarDadosCad" runat="server" ImageUrl="~/Imagens/botoes_confirmar.png"
                                    OnClick="imgbConfirmarDadosCad_Click" 
                                    ValidationGroup="camposObrigatoriosDadosAlu" />
                            </div>
                            <div style="float: right; margin-top: 5px; margin-right: 5px;">
                                <asp:ImageButton ID="imgb_dicaPagina" runat="server" ImageUrl="~/Imagens/botoes_pagina_dica_paginar.png"
                                    OnClientClick="alert('Ao inserir uma Diretiva, confirme os seus dados antes de configurar suas Periodicidades ou Aplicabilidades. \n Sempre que o botão confirmar for pressionado os dados serão salvos.')"
                                    Style="cursor: help" ToolTip="Dica de Página!" />
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
            <%--===========================================================================
                        DADOS DOS RESPONSÁVEIS
            ===============================================================================--%>            
            <telerik:RadPageView ID="RadPageView2" runat="server">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                           <telerik:RadAjaxLoadingPanel ID="ralpResposaveis" runat="server" Skin="Default">
                            </telerik:RadAjaxLoadingPanel> 

                            <telerik:RadAjaxPanel ID="rapResponsaveis" runat="server" 
                                Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpResposaveis" 
                                onajaxrequest="rapResponsaveis_AjaxRequest">

                                    <div style="float:left; margin-left:5px; width:10%; margin-top:8px;">
                                        <asp:Label ID="lbl_respcpf" runat="server" Text="CPF" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                        <%--<asp:RequiredFieldValidator ID="rfv_mskResp_cpf" runat="server" ControlToValidate="mskResp_cpf"
                                            ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosResp"></asp:RequiredFieldValidator>--%>
                                        <telerik:RadMaskedTextBox ID="mskResp_cpf" runat="server" 
                                            Font-Size="X-Small" Mask="&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;.&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;.&lt;0..9&gt;&lt;0..9&gt;&lt;0..9&gt;-&lt;0..9&gt;&lt;0..9&gt;" 
                                            Width="100%" AutoPostBack="True" ontextchanged="mskResp_cpf_TextChanged">
                                        </telerik:RadMaskedTextBox>
                                    </div>
                                    <div style="float:left; margin-left:10px; width:45%">
                                        <asp:Label ID="lbl_txtResp_nome" runat="server" Text="Nome" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                        <asp:RequiredFieldValidator ID="rfv_txtResp_nome" runat="server" ControlToValidate="txtResp_nome"
                                            ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosResp"></asp:RequiredFieldValidator>
                                        <telerik:RadTextBox ID="txtResp_nome" Runat="server" Font-Size="X-Small" 
                                            Width="97%" 
                                            ReadOnly="false" AutoPostBack="True" 
                                            ontextchanged="mskResp_cpf_TextChanged">
                                            <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox>
                                    </div>
                                    <div style="float:left; margin-left:10px; width:10%; margin-top:8px;">
                                        <asp:Label ID="lbl_txtResp_rg" runat="server" Text="RG" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                        <telerik:RadTextBox ID="txtResp_rg" Runat="server" Font-Size="X-Small" 
                                            Width="97%" 
                                            ReadOnly="false">
                                            <ReadOnlyStyle BackColor="#D6DCDB" />
                                        </telerik:RadTextBox>
                                    </div>
                                    <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                                        <asp:Label ID="lbl_dtResp_dataNasc" runat="server" Text="Data nasc." 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                            <telerik:RadDateInput ID="dtResp_dataNasc" runat="server" 
                                            Font-Size="X-Small" Width="97%">
                                                    </telerik:RadDateInput>
                                    </div>
                                    <div style="float:right; margin-right:5px; width:15%; margin-top:8px;">
                                        <asp:Label ID="lbl_respGrauParentesco" runat="server" Text="Parentesco" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                        <telerik:RadComboBox ID="rcbRespGrauParentesco" runat="server" 
                                                        Font-Size="X-Small" Width="100%" Filter="Contains" 
                                                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                        EnableLoadOnDemand="True" 
                                                        style="margin-bottom: 0px">
                                            <Items>
                                                <telerik:RadComboBoxItem runat="server" />
                                                <telerik:RadComboBoxItem runat="server" Text="Mãe" 
                                                    Value="Mãe" Font-Size="X-Small" />
                                                <telerik:RadComboBoxItem runat="server" Text="Pai" 
                                                    Value="Pai" Font-Size="X-Small" />
                                                <telerik:RadComboBoxItem runat="server" Text="Irmão(ã)" 
                                                    Value="Irm" Font-Size="X-Small" />                           
                                                <telerik:RadComboBoxItem runat="server" Text="Tio(a)" 
                                                    Value="Tio" Font-Size="X-Small" />  
                                                <telerik:RadComboBoxItem runat="server" Text="Avô(ó)" 
                                                    Value="Avô" Font-Size="X-Small" />                           
                                                <telerik:RadComboBoxItem runat="server" Text="Madrasta" 
                                                    Value="Mad" Font-Size="X-Small" />
                                                <telerik:RadComboBoxItem runat="server" Text="Padrasto" 
                                                    Value="Pad" Font-Size="X-Small" />
                                                <telerik:RadComboBoxItem runat="server" Text="Responsável" 
                                                    Value="Res" Font-Size="X-Small" />
                                            </Items>
                                        </telerik:RadComboBox>     
                                    </div>
                                    
                                    <%--linha--%>
                                    <div style="float:left; margin-left:0px; width:100%">                                                                                
                                            
                                            <%--telefones--%>
                                            <div style="float:left; margin-left:5px; width:10%">
                                                <asp:Label ID="lbl_respTelefoneFixo" runat="server" Text="Fone Residencial" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                                <telerik:RadTextBox ID="txbRespTelefoneFixo" Runat="server" Font-Size="X-Small" 
                                                    Width="97%" 
                                                    ReadOnly="false">
                                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                                </telerik:RadTextBox>
                                            </div>
                                            <div style="float:left; margin-left:10px; width:11%">
                                                <asp:Label ID="lbl_respTelefoneTrab" runat="server" Text="Fone Comercial" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                                <telerik:RadTextBox ID="txbRespTelefoneTrab" Runat="server" Font-Size="X-Small" 
                                                    Width="97%" 
                                                    ReadOnly="false">
                                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                                </telerik:RadTextBox>
                                            </div>
                                            <div style="float:left; margin-left:10px; width:11%">
                                                <asp:Label ID="lbl_respTelefoneMovel" runat="server" Text="Fone Celular" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                                <telerik:RadTextBox ID="txbRespTelefoneMovel" Runat="server" Font-Size="X-Small" 
                                                    Width="97%" 
                                                    ReadOnly="false">
                                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                                </telerik:RadTextBox>
                                            </div>
                                            <%--telefones--%>
                                            <div style="float:left; margin-left:10px; width:21%">
                                                <asp:Label ID="lbl_txtResp_email" runat="server" Text="E-mail" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>                                                
                                                <telerik:RadTextBox ID="txtResp_email" Runat="server" Font-Size="X-Small" 
                                                    Width="97%" 
                                                    ReadOnly="false">
                                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                                </telerik:RadTextBox>
                                            </div>
                                            <div style="float:left; margin-left:10px; width:7%; margin-top:0px;">
                                                <asp:Label ID="lbl_rcbResp_paisIrmaos" runat="server" Text="Pais/Irmãos" Font-Bold="true" 
                                                    Font-Size="X-Small"></asp:Label> 
                                                <br />
                                                <asp:CheckBox ID="rcbResp_parentesco" runat="server" Enabled="False" />
                                            </div>
                                            <div style="float:left; margin-left:10px; width:7%; margin-top:0px;">
                                                <asp:Label ID="lbl_rcbResp_falecido" runat="server" Text="Falecido" Font-Bold="true" 
                                                    Font-Size="X-Small"></asp:Label> 
                                                <br />
                                                <asp:CheckBox ID="rcbResp_falecido" runat="server" />
                                            </div>
                                            <div style="float:left; margin-left:10px; width:1%">
                                                <asp:TextBox ID="resp_ALUNO_RESP_ID" runat="server" BorderStyle="None" ForeColor="White"                                                
                                                    Font-Size="X-Small" Width="99%"></asp:TextBox>
                                                <asp:TextBox ID="resp_PESSOA_ID" runat="server" BorderStyle="None" ForeColor="White"
                                                    Font-Size="X-Small" Width="99%"></asp:TextBox>
                                            </div>

                                            <div style="float:right; margin-right:5px; width:23%">                                            
                                                <asp:Label ID="Label6" runat="server" Text="Profissão" 
                                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>        
                                                <telerik:RadComboBox ID="rcbResp_profissaoId" runat="server" 
                                                                            Font-Size="X-Small" Width="100%" DataTextField="PRF_DESCRICAO" 
                                                                            DataValueField="PROFISSAO_ID" Filter="Contains" 
                                                                            EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                                            EnableLoadOnDemand="True" onitemsrequested="profissao_pessoa_id_ItemsRequested" 
                                                                            style="margin-bottom: 0px">                        
                                                            </telerik:RadComboBox>
                                            </div>                                                                                                                                                                                    
                                        </div>
                                    </telerik:RadAjaxPanel>
                                    <div style="float:left; margin-left:5px; margin-top:5px; background-color:#C8BE9E; color:#C8BE9E; width:99%">
                                        <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                                            <asp:ImageButton ID="imgbPersistirResp" runat="server" 
                                                ImageUrl="~/Imagens/botoes_confirmar_pagina.png" 
                                                onclick="imgbPersistirResp_Click" ValidationGroup="imgbIncluirResponsavel" 
                                                ToolTip="Confirmar dados do Responsável" />
                                        </div>
                                    </div>
                                    <div style="float:left; margin-left:5px; margin-top:5px; width:100%">
                                        <telerik:RadAjaxPanel ID="rapResponsaveisGrid" runat="server" 
                                            Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpResposaveisGrid" 
                                            onajaxrequest="rapResponsaveisGrid_AjaxRequest">
                                                <telerik:RadGrid ID="rdg_Responsavel" runat="server" AllowAutomaticDeletes="true"
                                                    DataSourceID="ods_Responsavel" Font-Size="X-Small" GridLines="None" 
                                                    Skin="Sunset" Width="840px">
                                                    <ClientSettings>
                                                        <Selecting AllowRowSelect="True" />
                                                        <ClientEvents OnRowClick="rdg_Responsavel_RowClick" />
                                                    </ClientSettings>
                                                    <MasterTableView AutoGenerateColumns="False" DataSourceID="ods_Responsavel" 
                                                        ClientDataKeyNames="RESPONSAVEL_ALUNO_ID" DataKeyNames="RESPONSAVEL_ALUNO_ID">
                                                        <Columns>
                                                            <telerik:GridBoundColumn DataField="RESPONSAVEL_ID" HeaderText="RESPONSAVEL_ID" 
                                                                SortExpression="RESPONSAVEL_ID" UniqueName="RESPONSAVEL_ID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="SOLICITANTE_ID" HeaderText="SOLICITANTE_ID" 
                                                                SortExpression="SOLICITANTE_ID" UniqueName="SOLICITANTE_ID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PESSOA_ID" HeaderText="PESSOA_ID" 
                                                                SortExpression="PESSOA_ID" UniqueName="PESSOA_ID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="RESPONSAVEL_ALUNO_ID" 
                                                                HeaderText="RESPONSAVEL_ALUNO_ID" SortExpression="RESPONSAVEL_ALUNO_ID" 
                                                                UniqueName="RESPONSAVEL_ALUNO_ID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID" 
                                                                SortExpression="ALUNO_ID" UniqueName="ALUNO_ID" Visible="false">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="RES_GRAUPARENTESCO" HeaderText="Parentesco" 
                                                                SortExpression="RES_GRAUPARENTESCO" UniqueName="RES_GRAUPARENTESCO">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PES_NOME" HeaderText="Nome" 
                                                                SortExpression="PES_NOME" UniqueName="PES_NOME">
                                                                <ItemStyle Font-Size="X-Small" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PES_CPF" HeaderText="CPF" 
                                                                SortExpression="PES_CPF" UniqueName="PES_CPF">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PES_RG" HeaderText="RG" 
                                                                SortExpression="PES_RG" UniqueName="PES_RG">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>                                                            
                                                            <telerik:GridBoundColumn DataField="TEL_FIXO" HeaderText="Residencial" 
                                                                SortExpression="TEL_FIXO" UniqueName="TEL_FIXO">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="TEL_COMERCIAL" HeaderText="Comercial" 
                                                                SortExpression="TEL_COMERCIAL" UniqueName="TEL_COMERCIAL">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="TEL_MOVEL" HeaderText="Celular" 
                                                                SortExpression="TEL_MOVEL" UniqueName="TEL_MOVEL">
                                                                <HeaderStyle Width="80px" />
                                                                <ItemStyle Font-Size="X-Small" Width="80px" />
                                                            </telerik:GridBoundColumn>
                                                            <%--//--%>
                                                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                                                ConfirmDialogType="RadWindow" 
                                                                ConfirmText="Deseja realmente excluir este registro" 
                                                                ConfirmTitle="Exclusão de registro" ImageUrl="../Imagens/grid_delete.png" 
                                                                Text="Delete" UniqueName="DeleteColumn">
                                                                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                            </telerik:GridButtonColumn>
                                                        </Columns>
                                                        <EditFormSettings>
                                                            <EditColumn UniqueName="EditCommandColumn1">
                                                            </EditColumn>
                                                        </EditFormSettings>
                                                    </MasterTableView>
                                                </telerik:RadGrid>
                                        </telerik:RadAjaxPanel>
                                </div>
                            
                        </td>
                    </tr>
                </table> 
            </telerik:RadPageView>
            <%--==============================================================================
                       ENDEREÇOS
            ==============================================================================--%>
            <telerik:RadPageView ID="RadPageView3" runat="server">
                <telerik:RadAjaxLoadingPanel ID="ralpEnderecos" runat="server" Skin="Default">
                </telerik:RadAjaxLoadingPanel>
                <telerik:RadAjaxLoadingPanel ID="ralpEnderecosGrid" runat="server" Skin="Default">
                </telerik:RadAjaxLoadingPanel>

                <telerik:RadAjaxPanel ID="rapEnderecos" runat="server" 
                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpEnderecos" 
                    onajaxrequest="rapEnderecos_AjaxRequest">

                    <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <div style="float:left; margin-left:5px; width:11%">
                                <asp:Label ID="lbl_end_cep" runat="server" Text="CEP" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_cep" runat="server" ControlToValidate="end_cep"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_cep" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false" ontextchanged="end_cep_TextChanged" AutoPostBack="True">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:45%">
                                <asp:Label ID="lbl_end_logradouro" runat="server" Text="Logradouro" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_end_logradouro" runat="server" ControlToValidate="end_logradouro"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_logradouro" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:11%;">
                                <asp:Label ID="lbl_end_numero" runat="server" Text="Número" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_end_numero" runat="server" ControlToValidate="end_numero"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_numero" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                                <asp:Label ID="lbl_end_complemento" runat="server" Text="Complemento" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <telerik:RadTextBox ID="end_complemento" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:right; margin-right:5px; width:15%;">
                                <asp:Label ID="lbl_end_bairro" runat="server" Text="Bairro" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_end_bairro" runat="server" ControlToValidate="end_bairro"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_bairro" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%--linha--%>
                            <div style="float:left; margin-left:5px; width:30%;">
                                <asp:Label ID="lbl_end_cidade" runat="server" Text="Cidade" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_end_cidade" runat="server" ControlToValidate="end_cidade"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_cidade" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:6%;">
                                <asp:Label ID="lbl_end_uf" runat="server" Text="UF" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_end_uf" runat="server" ControlToValidate="end_uf"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosCEP"></asp:RequiredFieldValidator>
                                <telerik:RadTextBox ID="end_uf" Runat="server" Font-Size="X-Small" 
                                    Width="97%" 
                                    ReadOnly="false">
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:19%; margin-top:5px;">
                                <asp:Label ID="lbl_endereco_tipo_id" runat="server" Text="Tipo" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <telerik:RadComboBox ID="endereco_tipo_id" runat="server" 
                                                Font-Size="X-Small" Width="100%" DataTextField="EDT_DESCRICAO" 
                                                DataValueField="ENDERECO_TIPO_ID" Filter="Contains" 
                                                EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                EnableLoadOnDemand="True" onitemsrequested="endereco_tipo_id_ItemsRequested" 
                                                style="margin-bottom: 0px">                        
                                            </telerik:RadComboBox>
                            </div>    
                            <div style="float:left; margin-left:10px; width:8%; margin-top:8px;">
                                <asp:Label ID="lbl_end_stexcluido" runat="server" Text="Inativo" Font-Bold="true" 
                                    Font-Size="X-Small"></asp:Label> 
                                <br />
                                <asp:CheckBox ID="end_stexcluido" runat="server" />
                            </div>                        
                            <div style="float:left; margin-left:10px; width:2%">
                                <asp:TextBox ID="end_ENDERECO_ID" runat="server" BorderStyle="None" ForeColor="White"                                                
                                    Font-Size="X-Small" Width="99%"></asp:TextBox>
                             </div>
                             <%--confirmar--%>
                            <div style="float:right; margin-right:5px; width:28%; margin-top:5px;">
                                <asp:Label ID="lbl_end_responsavel_id" runat="server" Text="Responsável associado" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <telerik:RadComboBox ID="end_responsavel_id" runat="server" 
                                                Font-Size="X-Small" Width="100%" DataTextField="PES_NOME" 
                                                DataValueField="RESPONSAVEL_ID" Filter="Contains" 
                                                EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                EnableLoadOnDemand="True" onitemsrequested="end_responsavel_id_ItemsRequested" 
                                                style="margin-bottom: 0px" >                        
                                            </telerik:RadComboBox>
                            </div>
                        </td>
                    </tr>                                        
                </table>
                </telerik:RadAjaxPanel>
                <div style="float:left; margin-left:5px; margin-top:5px; background-color:#C8BE9E; color:#C8BE9E; width:99%">
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbPersistirEnd" runat="server" 
                            ImageUrl="~/Imagens/botoes_confirmar_pagina.png" 
                            onclick="imgbPersistirEnd_Click" ValidationGroup="camposObrigatoriosCEP" 
                            ToolTip="Confirmar dados do Responsável" />                        
                    </div>
                </div>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <div style="float:left; margin-left:5px; margin-top:5px; width:99%">
                                <telerik:RadAjaxPanel ID="rapEnderecosGrid" runat="server" 
                                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpEnderecosGrid" 
                                    onajaxrequest="rapEnderecosGrid_AjaxRequest">
                                    <telerik:RadGrid ID="rdg_Enderecos" runat="server" DataSourceID="ods_Endereco" AllowAutomaticDeletes="True"
                                    Skin="Sunset" Width="840px" Font-Size="X-Small" PageSize="5" 
                                    GridLines="None">
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="True" />
                                        <ClientEvents OnRowClick="rdg_Enderecos_RowClick" />
                                    </ClientSettings>
                                    <MasterTableView AutoGenerateColumns="False" ClientDataKeyNames="ENDERECO_ID" 
                                        DataKeyNames="ENDERECO_ID" DataSourceID="ods_Endereco">
                                        <RowIndicatorColumn>
                                            <HeaderStyle Width="20px" />
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn>
                                            <HeaderStyle Width="20px" />
                                        </ExpandCollapseColumn>
                                        <Columns>
                                            <telerik:GridBoundColumn DataField="ENDERECO_ID" HeaderText="ENDERECO_ID" Visible="false"
                                                SortExpression="ENDERECO_ID" UniqueName="ENDERECO_ID">
                                                 <HeaderStyle Width="100px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="100px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID"  Visible="false"
                                                SortExpression="ALUNO_ID" UniqueName="ALUNO_ID">
                                                 <HeaderStyle Width="100px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="100px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="RESPONSAVEL_ID" HeaderText="RESPONSAVEL_ID"  Visible="false"
                                                SortExpression="RESPONSAVEL_ID" UniqueName="RESPONSAVEL_ID">
                                                 <HeaderStyle Width="100px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="100px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="ENDERECO_TIPO_ID" HeaderText="Tipo" SortExpression="ENDERECO_TIPO_ID" 
                                                UniqueName="ENDERECO_TIPO_ID">
                                                 <HeaderStyle Width="40px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="40px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_LOGRADOURO" HeaderText="Logradouro" 
                                                SortExpression="END_LOGRADOURO" UniqueName="END_LOGRADOURO">
                                                 <HeaderStyle Width="150px"/> 
                                                <ItemStyle Font-Size="X-Small" Width="150px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_NUMERO" HeaderText="Número" 
                                                SortExpression="END_NUMERO" UniqueName="END_NUMERO">
                                                 <HeaderStyle Width="40px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="40px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_COMPLEMENTO" 
                                                HeaderText="Complemento" SortExpression="END_COMPLEMENTO" UniqueName="Complemento">
                                                 <HeaderStyle Width="70px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="70px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_BAIRRO" HeaderText="Bairro" 
                                                SortExpression="END_BAIRRO" UniqueName="END_BAIRRO">
                                                 <HeaderStyle Width="150px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="150px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_CIDADE" HeaderText="Cidade" 
                                                SortExpression="END_CIDADE" UniqueName="END_CIDADE">
                                                 <HeaderStyle Width="150px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="150px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_CEP" HeaderText="CEP" 
                                                SortExpression="END_CEP" UniqueName="END_CEP">
                                                 <HeaderStyle Width="80px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="80px" /> 
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="END_UF" HeaderText="UF" 
                                                SortExpression="END_UF" UniqueName="END_UF">
                                                 <HeaderStyle Width="50px" /> 
                                                <ItemStyle Font-Size="X-Small" Width="50px" /> 
                                            </telerik:GridBoundColumn>
                                            <%--//--%>
                                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                                ConfirmDialogType="RadWindow" 
                                                ConfirmText="Deseja realmente excluir este registro" 
                                                ConfirmTitle="Exclusão de registro" ImageUrl="../Imagens/grid_delete.png" 
                                                Text="Delete" UniqueName="DeleteColumn">
                                                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                <ItemStyle HorizontalAlign="Center" Width="40px" />
                                            </telerik:GridButtonColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid> 
                                </telerik:RadAjaxPanel>
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
            <%--==============================================================================
                       MATRICULAS
            ==============================================================================--%>
            <telerik:RadPageView ID="RadPageView4" runat="server">
                <telerik:RadAjaxLoadingPanel ID="ralpMatriculas" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel>
                    <telerik:RadAjaxPanel ID="rapMatriculas" runat="server" 
                        Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpMatriculas" 
                        onajaxrequest="rapMatriculas_AjaxRequest">
                            <div style="float:left; margin-left:5px; width:50%; ">
                                <asp:Label ID="lbl_mat_turma_id" runat="server" Text="Turma" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_mat_turma_id" runat="server" ControlToValidate="mat_turma_id"
                                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMatricula"></asp:RequiredFieldValidator>
                                <telerik:RadComboBox ID="mat_turma_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="TUR_DESCRICAOCOMP" 
                                                    DataValueField="TURMA_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="mat_turma_id_ItemsRequested" 
                                                    style="margin-bottom: 0px" AutoPostBack="True" 
                                    onselectedindexchanged="mat_turma_id_SelectedIndexChanged" 
                                    AllowCustomText="True" ></telerik:RadComboBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:23%; ">
                                <asp:Label ID="lbl_mat_modalidade_id" runat="server" Text="Modalidade" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_mat_modalidade_id" runat="server" ControlToValidate="mat_modalidade_id"
                                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMatricula"></asp:RequiredFieldValidator>
                                <telerik:RadComboBox ID="mat_modalidade_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="MOD_DESCRICAO" 
                                                    DataValueField="MODALIDADE_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="mat_modalidade_id_ItemsRequested" 
                                                    style="margin-bottom: 0px" AllowCustomText="True" ></telerik:RadComboBox>
                            </div>
                            <div style="float:right; margin-right:5px; width:23%; ">                            
                                <asp:Label ID="lbl_mat_nivel_id" runat="server" Text="Nível" 
                                        Font-Bold="True" Font-Size="X-Small">
                                </asp:Label><asp:RequiredFieldValidator ID="rfv_mat_nivel_id" runat="server" ControlToValidate="mat_nivel_id"
                                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMatricula">
                                 </asp:RequiredFieldValidator>
                                <telerik:RadComboBox ID="mat_nivel_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="NIV_DESCRICAO" 
                                                    DataValueField="NIVEL_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="mat_nivel_id_ItemsRequested" 
                                                    style="margin-bottom: 0px" AllowCustomText="True" ></telerik:RadComboBox>
                            </div>

                            <%--linha--%>                                    
                            
                            <div style="float:left; margin-left:5px; width:18%; margin-top:8px;">
                                <asp:Label ID="lbl_mat_bolda_id" runat="server" Font-Bold="True" 
                                    Font-Size="X-Small" Text="Bolsa/Desconto"></asp:Label>
                                <telerik:RadComboBox ID="mat_bolsa_id" runat="server" 
                                    DataTextField="BOL_DESCRICAO" DataValueField="BOLSA_ID" 
                                    EmptyMessage="Selecione" EnableLoadOnDemand="True" Filter="Contains" 
                                    Font-Size="X-Small" MarkFirstMatch="True" AllowCustomText="true"
                                    onitemsrequested="mat_bolsa_id_ItemsRequested" style="margin-bottom: 0px" 
                                    Width="100%"></telerik:RadComboBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:12%; margin-top:8px;">
                                <asp:Label ID="lbl_MAT_ISENTOTXPARTICIPACAO" runat="server" Text="Isento(a) Taxa Festival" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                    <br />
                                <asp:RadioButtonList ID="mat_isentotxparticipacao" runat="server" 
                                        Font-Size="X-Small" RepeatDirection="Horizontal" AutoPostBack="True" 
                                        onselectedindexchanged="mat_isentotxparticipacao_SelectedIndexChanged">
                                        <asp:ListItem Selected="True" Value="N">Não</asp:ListItem>
                                        <asp:ListItem Value="S">Sim</asp:ListItem>
                                </asp:RadioButtonList>
                            </div>

                            <div style="float:left; margin-left:10px; width:9%; margin-top:8px;">
                                <asp:Label ID="lbl_mat_txparticipacao" runat="server" Text="Tx Participação" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <br />
                                <telerik:RadNumericTextBox ID="mat_txparticipacao" runat="server" Font-Size="X-Small" 
                                    Width="97%" Culture="pt-BR" Type="Currency"><ReadOnlyStyle BackColor="#D6DCDB" /></telerik:RadNumericTextBox>
                            </div>                                                                                                                            
                            <div style="float:left; margin-left:10px; width:8%; margin-top:0px;">
                                <asp:Label ID="lbl_mat_vrmensalidade" runat="server" Text="Valor base" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rfv_mat_vrmensalidade" runat="server" ControlToValidate="mat_vrmensalidade"
                                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMatricula"></asp:RequiredFieldValidator>
                                <telerik:RadNumericTextBox ID="mat_vrmensalidade" runat="server" Font-Size="X-Small"
                                            Width="97%" DataType="System.Int32" Culture="pt-BR" 
                                    Type="Currency">
                                            <NumberFormat DecimalDigits="2" />
                                            <ReadOnlyStyle BackColor="#CCCCCC" />
                                </telerik:RadNumericTextBox>
                            </div>
                            <div style="float:left; margin-left:10px; width:9%; margin-top:8px;">
                                <asp:Label ID="lbl_mat_diavencimento" runat="server" Text="Dia vencimento" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <br />
                                <telerik:RadNumericTextBox ID="mat_diavencimento" runat="server" Font-Size="X-Small" 
                                        Width="97%" Culture="pt-BR" Type="Number">
                                    <NumberFormat DecimalDigits="0" />
                                    <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadNumericTextBox>
                            </div>                    
                            <div style="float:left; margin-left:10px; width:12%; margin-top:0px; ">
                                <asp:Label ID="lbl_mat_dt_inicio" runat="server" Text="Data matrícula" 
                                    Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                <asp:RequiredFieldValidator ID="rvf_mat_dt_inicio" runat="server" ControlToValidate="mat_dt_inicio"
                                    ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMatricula"></asp:RequiredFieldValidator>
                                <telerik:RadDateInput ID="mat_dt_inicio" runat="server" 
                                        Font-Size="X-Small" Width="97%">
                                        <ReadOnlyStyle BackColor="#D6DCDB" />
                                </telerik:RadDateInput>
                            </div>
                                <div style="float:left; margin-left:12px; width:11%; margin-top:8px;">
                                    <asp:Label ID="lbl_mat_confirmapag" runat="server" Text="Confirma pagto" Font-Bold="true" 
                                        Font-Size="X-Small"></asp:Label> 
                                    <br />
                                    <asp:CheckBox ID="mat_confirmapag" runat="server" />
                                </div>  
                            <div style="float:left; margin-left:10px; width:7%; margin-top:8px;">
                                <asp:Label ID="lbl_mat_parentesco" runat="server" Text="Pais/Irmãos" Font-Bold="true" Visible="true"
                                    ForeColor="#ba3a01" Font-Size="X-Small"></asp:Label> 
                                <br />
                                <asp:CheckBox ID="mat_parentesco" runat="server" Enabled="false" Visible="false" />
                            </div>   
                            <div style="float:left; margin-left:10px; width:2%">
                                <asp:TextBox ID="mat_MATRICULA_ID" runat="server" BorderStyle="None" ForeColor="White"  Visible="false"
                                    Font-Size="X-Small" Width="99%"></asp:TextBox>
                            </div>       
                </telerik:RadAjaxPanel>
                <div style="float:left; margin-left:5px; margin-top:5px; background-color:#C8BE9E; color:#C8BE9E; width:99%">
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbPersistirMat" runat="server" 
                            ImageUrl="~/Imagens/botoes_confirmar_pagina.png" 
                            onclick="imgbPersistirMat_Click" ValidationGroup="camposObrigatoriosMatricula" 
                            ToolTip="Confirmar dados da Matrícula" />
                    </div>                                        
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbEmitirRecMat" runat="server" 
                            ImageUrl="~/Imagens/botoes_pagina_imprimir_recibo.png" 
                            onclick="imgbEmitirRecMat_Click" 
                            ToolTip="Confirmar dados da Matrícula" />
                    </div>
                </div>
                <div style="float:left; margin-left:0px; margin-top:0px; width:99%">
                
                    <table width="100%" cellpadding="0" cellspacing="0" style="width: 798px">                    
                        <tr>
                            <td>
                                 <div style="float:left; margin-left:5px; margin-top:10px; width:100%">
                                    <telerik:RadAjaxPanel ID="rapMatriculasGrid" runat="server" 
                                        Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpMatriculas" 
                                        onajaxrequest="rapMatriculasGrid_AjaxRequest">
                                        
                                        <telerik:RadGrid ID="rdg_matriculas" runat="server" Width="840"
                                            AllowAutomaticDeletes="True" DataSourceID="ods_Matriculas" GridLines="None" 
                                            Skin="Sunset">
                                            <ClientSettings>
                                                <Selecting AllowRowSelect="true" />
                                                <ClientEvents OnRowClick="rdg_Matriculas_RowClick" />
                                            </ClientSettings>
                                            <MasterTableView AutoGenerateColumns="False" DataSourceID="ods_Matriculas" 
                                                ClientDataKeyNames="MATRICULA_ID" DataKeyNames="MATRICULA_ID">
                                                <Columns>
                                                    <telerik:GridBoundColumn DataField="MATRICULA_ID" HeaderText="Matrícula" Visible="true"
                                                        SortExpression="MATRICULA_ID" UniqueName="MATRICULA_ID"><HeaderStyle Width="60px" /><ItemStyle Font-Size="X-Small" Width="60px" /></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID"  Visible="false"
                                                        SortExpression="ALUNO_ID" UniqueName="ALUNO_ID"><HeaderStyle Width="100px" /><ItemStyle Font-Size="X-Small" Width="100px" /></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="TURMA_ID" HeaderText="TURMA_ID"  Visible="false"
                                                        SortExpression="TURMA_ID" UniqueName="TURMA_ID"><HeaderStyle Width="100px" /><ItemStyle Font-Size="X-Small" Width="100px" /></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="BOLSA_ID" HeaderText="BOLSA_ID"  Visible="false"
                                                        SortExpression="BOLSA_ID" UniqueName="BOLSA_ID"><HeaderStyle Width="100px" /><ItemStyle Font-Size="X-Small" Width="100px" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="TUR_DESCRICAOCOMP" HeaderText="Turma" SortExpression="TUR_DESCRICAOCOMP" 
                                                        UniqueName="TUR_DESCRICAOCOMP"><HeaderStyle  /><ItemStyle Font-Size="X-Small" /></telerik:GridBoundColumn>
                                                    
                                                    <telerik:GridBoundColumn DataField="MOD_DESCRICAO" HeaderText="Modalidade" 
                                                        SortExpression="MOD_DESCRICAO" UniqueName="MOD_DESCRICAO"><HeaderStyle Width="120px" /><ItemStyle Font-Size="X-Small" Width="120px" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="NIV_DESCRICAO" HeaderText="Nível" SortExpression="NIV_DESCRICAO" 
                                                        UniqueName="NIV_DESCRICAO"><HeaderStyle  Width="120px"/><ItemStyle Font-Size="X-Small" Width="120px" />
                                                    </telerik:GridBoundColumn>
                                                    
                                                    
                                                    
                                                    <telerik:GridBoundColumn DataField="MAT_DTINCLUSAO" HeaderText="Início" 
                                                        SortExpression="MAT_DTINCLUSAO" UniqueName="MAT_DTINCLUSAO"><HeaderStyle Width="50px" /><ItemStyle Font-Size="X-Small" Width="50px" /></telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="MAT_DTEXCLUSAO" 
                                                        HeaderText="Término" SortExpression="MAT_DTEXCLUSAO" UniqueName="MAT_DTEXCLUSAO"><HeaderStyle Width="50px" /><ItemStyle Font-Size="X-Small" Width="50px" /></telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="BOL_DESCRICAO" HeaderText="Bolsa/Desconto" 
                                                        SortExpression="BOL_DESCRICAO" UniqueName="BOL_DESCRICAO"><HeaderStyle Width="100px" /><ItemStyle Font-Size="X-Small" Width="100px" /></telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="MAT_VRMENSALIDADE" HeaderText="Mensalidade" Visible="false"
                                                        SortExpression="MAT_VRMENSALIDADE" UniqueName="MAT_VRMENSALIDADE"><HeaderStyle Width="80px" /><ItemStyle Font-Size="X-Small" Width="80px" />
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="MAT_STEXCLUIDO" HeaderText="Inativo" Visible="false"
                                                        SortExpression="MAT_STEXCLUIDO" UniqueName="MAT_STEXCLUIDO"><HeaderStyle Width="80px" />
                                                        <ItemStyle Font-Size="X-Small" Width="80px" />
                                                   </telerik:GridBoundColumn>
                                                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                                        ConfirmDialogType="RadWindow" 
                                                        ConfirmText="Deseja realmente excluir este registro" 
                                                        ConfirmTitle="Exclusão de registro" ImageUrl="../Imagens/grid_delete.png" 
                                                        Text="Delete" UniqueName="DeleteColumn">
                                                        <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                                                    </telerik:GridButtonColumn>
                                                </Columns>
                                            </MasterTableView>
                                        </telerik:RadGrid>
                                        
                                  </telerik:RadAjaxPanel>
                                 </div>
                              </td>
                           </tr>
                     </table>
                </div>
            </telerik:RadPageView>
            <%--==============================================================================
                       MENSALIDADES
            ==============================================================================--%>
            <telerik:RadPageView ID="RadPageView5" runat="server">
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <telerik:RadAjaxLoadingPanel ID="ralpMensalidades" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel>
                                <div style="float:left; margin-left:5px; width:25%; ">
                                    <asp:Label ID="lbl_pag_matricula_id" runat="server" Text="Matrícula" 
                                            Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                    <asp:RequiredFieldValidator ID="rfv_pag_matricula_id" runat="server" ControlToValidate="pag_matricula_id"
                                            ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMensalidade"></asp:RequiredFieldValidator>
                                    <telerik:RadComboBox ID="pag_matricula_id" runat="server" 
                                                        Font-Size="X-Small" Width="100%" DataTextField="MAT_MTRDESCRICAO" 
                                                        DataValueField="MATRICULA_ID" Filter="Contains" 
                                                        EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                        EnableLoadOnDemand="True" onitemsrequested="pag_matricula_id_ItemsRequested" 
                                                        style="margin-bottom: 0px" ></telerik:RadComboBox>
                                </div>
                                <div style="float:left; margin-left:5px; width:20%; margin-top:5px;">
                                    <asp:Label ID="lbl_pag_bolsa_id" runat="server" Text="Bolsa/Desconto" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                                    <telerik:RadComboBox ID="pag_bolsa_id" runat="server" 
                                                    Font-Size="X-Small" Width="100%" DataTextField="BOL_DESCRICAO" 
                                                    DataValueField="BOLSA_ID" Filter="Contains" 
                                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                                    EnableLoadOnDemand="True" onitemsrequested="pag_bolsa_id_ItemsRequested" 
                                                    style="margin-bottom: 0px" ></telerik:RadComboBox></div><%--<div style="float:left; margin-left:10px; width:15%; margin-top:5px;">
                                    <asp:Label ID="lbl_pagvalormensalidade" runat="server" Text="Valor Mensalidade" 
                                        Font-Bold="True" Font-Size="X-Small"></asp:Label><br />
                                    <telerik:RadNumericTextBox ID="pagvalormensalidade" runat="server" Font-Size="X-Small" 
                                        Width="100%" Culture="pt-BR" Type="Currency">
                                        <ReadOnlyStyle BackColor="#D6DCDB" />
                                    </telerik:RadNumericTextBox>
                                           
                                </div>--%>
                            <div style="float:left; margin-left:5px; width:10%; margin-top:5px;">
                                <asp:Label ID="lbl_pag_anoreferencia" runat="server" Font-Bold="True" 
                                    Font-Size="X-Small" Text="Ano referência"></asp:Label>
                                <telerik:RadComboBox ID="pag_anoreferencia" runat="server" DataTextField="ANO" 
                                    DataValueField="ANO_DESC" EmptyMessage="Selecione" EnableLoadOnDemand="True" 
                                    Filter="Contains" Font-Size="X-Small" MarkFirstMatch="True" 
                                    onitemsrequested="pag_anoreferencia_ItemsRequested" style="margin-bottom: 0px" 
                                    Width="100%"></telerik:RadComboBox></div>
                            <div style="float:left; margin-left:5px; width:10%; margin-top:5px;">
                                <asp:Label ID="lbl_pag_mesreferencia" runat="server" Font-Bold="True" 
                                    Font-Size="X-Small" Text="Mês referência"></asp:Label>
                                <telerik:RadComboBox ID="pag_mesreferencia" runat="server" 
                                    EmptyMessage="Selecione" Filter="Contains" Font-Size="X-Small" 
                                    MarkFirstMatch="True" style="margin-bottom: 0px" Width="100%">
                                                        <Items>
                                                            <telerik:RadComboBoxItem runat="server" Text="" Value="" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Janeiro" Value="1" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Fevereiro" Value="2" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Março" Value="3" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Abril" Value="4" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Maio" Value="5" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Junho" Value="6" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Julho" Value="7" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Agosto" Value="8" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Setembro" Value="9" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Outubro" Value="10" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Novembro" Value="11" />
                                                            <telerik:RadComboBoxItem runat="server" Text="Dezembro" Value="12" />
                                                        </Items></telerik:RadComboBox></div>
                            <div style="float:left; margin-left:5px; width:15%; margin-top:5px;">
                                <asp:Label ID="lbl_formapagamento_id" runat="server" Font-Bold="True" 
                                    Font-Size="X-Small" Text="Forma de Pagamento"></asp:Label>
                                <telerik:RadComboBox ID="pag_formapagamento_id" runat="server" 
                                    DataTextField="MOD_DESCRICAO" DataValueField="MODALIDADE_ID" 
                                    EmptyMessage="Selecione" EnableLoadOnDemand="True" Filter="Contains" 
                                    Font-Size="X-Small" MarkFirstMatch="True" 
                                    onitemsrequested="pag_formapagamento_id_ItemsRequested" 
                                    style="margin-bottom: 0px" Width="100%"></telerik:RadComboBox></div>
                            <div style="float:left; margin-left:10px; width:10%; margin-top:5px;">
                                <asp:Label ID="lbl_pag_mensalidadesAberto" runat="server" Font-Bold="True" 
                                    Font-Size="X-Small" Text="Em aberto"></asp:Label>
                                <br /><asp:CheckBox ID="ckb_pagamentos_aberto" runat="server" Checked="True" />
                            </div>
                            <div style="float:right; margin-right:5px; width:20px; margin-top:15px;">
                                            <asp:ImageButton ID="imgbVisualizarPagamento" runat="server" 
                                    ImageUrl="~/Imagens/pagina_lupa_cinza.png" 
                                    OnClientClick="btnPagamento_Click(); return false;" ToolTip="Localizar" 
                                    Visible="true" />
                                            <asp:ImageButton ID="imgbAdiconarPagamento" runat="server" 
                                    ImageUrl="~/Imagens/pagina_insert_cinza.png" 
                                    onclick="imgbAdiconarPagamento_Click" ToolTip="Inserir novo registro" 
                                    ValidationGroup="camposObrigatoriosCEP" Visible="false" /></div></td></tr>
                    <tr><td>
                        <div style="float:left; margin-right:0px; width:100%">
                                        <telerik:RadAjaxPanel ID="rapMensalidades" runat="server" 
                                            HorizontalAlign="NotSet" LoadingPanelID="ralpMensalidades" 
                                            onajaxrequest="rapMensalidades_AjaxRequest" Width="100%">
                                                <telerik:RadGrid ID="rdg_mensalidades" runat="server" 
                                                    Font-Size="X-Small" GridLines="None" PageSize="5" Skin="Sunset" Width="850px">
                                                    <clientsettings>
                                                        <selecting allowrowselect="True" />
                                                        
                                                        </clientsettings>
                                                    <mastertableview autogeneratecolumns="False" >
                                                        <Columns><telerik:GridBoundColumn DataField="PAGAMENTO_ID" 
                                                                HeaderText="PAGAMENTO_ID" SortExpression="PAGAMENTO_ID" 
                                                                UniqueName="PAGAMENTO_ID" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="MATRICULA_ID" HeaderText="Matrícula" SortExpression="MATRICULA_ID" UniqueName="MATRICULA_ID">
                                                                    <HeaderStyle Width="65px" /> 
                                                                    <ItemStyle Font-Size="X-Small" Width="65px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="TURMA_MENSALIDADE_ID" HeaderText="Turma" 
                                                                SortExpression="TURMA_MENSALIDADE_ID" UniqueName="TURMA_MENSALIDADE_ID" 
                                                                Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="BOLSA_ID" HeaderText="BOLSA_ID" SortExpression="BOLSA_ID" 
                                                                UniqueName="BOLSA_ID" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="PAG_VALORPAGO" HeaderText="Valor pago" SortExpression="PAG_VALORPAGO" UniqueName="PAG_VALORPAGO"><HeaderStyle />
                                                                    <HeaderStyle HorizontalAlign="Right" Width="85px" /> 
                                                                    <ItemStyle HorizontalAlign="Right" Font-Size="X-Small" Width="85px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="PAG_VALORMENSALIDADE" HeaderText="PAG_VALORMENSALIDADE" 
                                                                SortExpression="PAG_VALORMENSALIDADE" UniqueName="PAG_VALORMENSALIDADE" 
                                                                Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="PAG_MULTA" HeaderText="Multa" SortExpression="PAG_MULTA" UniqueName="PAG_MULTA">
                                                                    <HeaderStyle HorizontalAlign="Right" Width="85px" /> 
                                                                    <ItemStyle HorizontalAlign="Right" Font-Size="X-Small" Width="85px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="PAG_JUROS" HeaderText="Juros" SortExpression="PAG_JUROS" UniqueName="PAG_JUROS">
                                                                    <HeaderStyle HorizontalAlign="Right" Width="85px" /> 
                                                                    <ItemStyle HorizontalAlign="Right" Font-Size="X-Small" Width="85px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="PAG_DESCONTO" HeaderText="Desconto" SortExpression="PAG_DESCONTO" UniqueName="PAG_DESCONTO">
                                                                    <HeaderStyle HorizontalAlign="Right" Width="85px" /> 
                                                                    <ItemStyle HorizontalAlign="Right" Font-Size="X-Small" Width="85px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="PAG_DTPAMENTO" HeaderText="Data pagto" SortExpression="PAG_DTPAMENTO" UniqueName="PAG_DTPAMENTO">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="70px" /> 
                                                                    <ItemStyle HorizontalAlign="Center" Font-Size="X-Small" Width="70px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="ANO_CALCULADO" HeaderText="Ano" SortExpression="ANO_CALCULADO" UniqueName="ANO_CALCULADO">
                                                                    <HeaderStyle HorizontalAlign="Center" Width="55px" /> 
                                                                    <ItemStyle HorizontalAlign="Center" Font-Size="X-Small" Width="55px" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="MES_CALCULADOEXT" HeaderText="Mês" SortExpression="MES_CALCULADOEXT" UniqueName="MES_CALCULADOEXT">
                                                                    <HeaderStyle HorizontalAlign="Center"  /> 
                                                                    <ItemStyle HorizontalAlign="Center" Font-Size="X-Small" /> 
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="PAG_EXCLUIDO" HeaderText="PAG_EXCLUIDO" 
                                                                SortExpression="PAG_EXCLUIDO" UniqueName="PAG_EXCLUIDO" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="PAGAMENTO_TIPO_ID" HeaderText="PAGAMENTO_TIPO_ID" 
                                                                SortExpression="PAGAMENTO_TIPO_ID" UniqueName="PAGAMENTO_TIPO_ID" 
                                                                Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="EVENTO_ID" HeaderText="EVENTO_ID" SortExpression="EVENTO_ID" 
                                                                UniqueName="EVENTO_ID" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="MATERIAL_ID" HeaderText="MATERIAL_ID" SortExpression="MATERIAL_ID" 
                                                                UniqueName="MATERIAL_ID" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="DATA_REFERENCIAL" HeaderText="DATA_REFERENCIAL" 
                                                                SortExpression="DATA_REFERENCIAL" UniqueName="DATA_REFERENCIAL" Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="NUMERO_MENSALIDADE" HeaderText="Mensalidade"
                                                                SortExpression="NUMERO_MENSALIDADE" UniqueName="NUMERO_MENSALIDADE" 
                                                                Visible="false"></telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn 
                                                                DataField="MAT_DTINCLUSAO" HeaderText="MAT_DTINCLUSAO" 
                                                                SortExpression="MAT_DTINCLUSAO" UniqueName="MAT_DTINCLUSAO" Visible="false"></telerik:GridBoundColumn><telerik:GridBoundColumn 
                                                                DataField="DATA_CALCULADA" HeaderText="DATA_CALCULADA" 
                                                                SortExpression="DATA_CALCULADA" UniqueName="DATA_CALCULADA" Visible="false"></telerik:GridBoundColumn>
                                                        </Columns>
                                                    </mastertableview>
                                            </telerik:RadGrid>
                                        </telerik:RadAjaxPanel>
                                      </div>
                                  </td>
                            </tr>
                     </table>
            </telerik:RadPageView>
            <%--==============================================================================
                       MATERIAIS
            ==============================================================================--%>
            <telerik:RadPageView ID="RadPageView6" runat="server">
                <telerik:RadAjaxLoadingPanel ID="ralpMateriais" runat="server" Skin="Default">
                            </telerik:RadAjaxLoadingPanel>

                <div style="float:left; margin-left:5px; width:25%; ">
                    <asp:Label ID="lbl_mat_material_id" runat="server" Text="Material" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <asp:RequiredFieldValidator ID="rfv_mat_material_id" runat="server" ControlToValidate="mat_material_id"
                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMaterial"></asp:RequiredFieldValidator>
                    <telerik:RadComboBox ID="mat_material_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="MTR_DESCRICAO" 
                                    DataValueField="MATERIAL_ID" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="mat_material_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        onselectedindexchanged="mat_material_id_SelectedIndexChanged" 
                        AutoPostBack="True" AllowCustomText="True" >                        
                                </telerik:RadComboBox>
                </div>
                <div style="float:left; margin-left:10px; width:25%; margin-top:8px;">
                    <asp:Label ID="lbl_mat_modalidade" runat="server" Text="Modalidade" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadTextBox ID="mat_modalidade" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                    <asp:Label ID="lbl_mat_valor" runat="server" Text="Valor (R$)" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                                
                    <telerik:RadTextBox ID="mat_valor" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                    <asp:Label ID="lbl_mat_quantidadedisp" runat="server" Text="Qtde. disponível" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                                
                    <telerik:RadTextBox ID="mat_quantidadedisp" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                
                <div style="float:left; margin-left:10px; width:11%;">
                    <asp:Label ID="lbl_mat_quantidadesolicit" runat="server" Text="Qtde. solicit" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <asp:RequiredFieldValidator ID="rfv_mat_quantidadesolicit" runat="server" ControlToValidate="mat_quantidadesolicit"
                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosMaterial"></asp:RequiredFieldValidator>
                    <telerik:RadTextBox ID="mat_quantidadesolicit" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="false">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                
                <div style="float:right; margin-right:5px; width:10%; margin-top:8px;">
                    <asp:Label ID="lbl_mat_valorPago" runat="server" Text="Valor pago" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadNumericTextBox ID="mat_valorPago" runat="server" Font-Size="X-Small"
                                Width="97%" ReadOnly="false" Type="Currency">
                                <NumberFormat DecimalDigits="2" />
                                <ReadOnlyStyle BackColor="#CCCCCC" />
                    </telerik:RadNumericTextBox>                
                </div>

                <div style="float:left; margin-left:5px; margin-top:5px; background-color:#C8BE9E; color:#C8BE9E; width:99%">
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbAdiconarMaterial" runat="server" 
                            ImageUrl="~/Imagens/botoes_confirmar_pagina.png" 
                            onclick="imgbAdiconarMaterial_Click" ValidationGroup="camposObrigatoriosMaterial" 
                            ToolTip="Inserir Material" />
                    </div>                                        
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbEmitirRecMaterial" runat="server" 
                            ImageUrl="~/Imagens/botoes_pagina_imprimir_recibo.png" 
                            onclick="imgbEmitirRecMaterial_Click" 
                            ToolTip="Emitir recibo" />
                    </div>
                    <asp:HiddenField ID="hid_ALUNO_MATERIAL_ID" runat="server" />
                </div>

                <%--linha grid--%>
                <div style="float:left; margin-left:5px; margin-top:8px; width:100%">
                                <telerik:RadAjaxPanel ID="rapMateriais" runat="server" 
                                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpMaterias"
                                    onajaxrequest="rapMateriais_AjaxRequest">
                                        
                                    <telerik:RadGrid ID="rdg_MaterialAluno" runat="server" 
                                        AllowAutomaticDeletes="True" DataSourceID="ods_Materiais" GridLines="None" 
                                        Skin="Sunset">
                                        <ClientSettings>
                                            <Selecting AllowRowSelect="True" />
                                            <ClientEvents OnRowClick="rdg_MaterialAluno_RowClick" />
                                        </ClientSettings>
                                        <MasterTableView AutoGenerateColumns="False" DataSourceID="ods_Materiais"
                                            ClientDataKeyNames="ALUNO_MATERIAL_ID" DataKeyNames="ALUNO_MATERIAL_ID">
                                            <RowIndicatorColumn>
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="ALUNO_MATERIAL_ID" Visible="true"
                                                    HeaderText="Código" SortExpression="ALUNO_MATERIAL_ID" 
                                                    UniqueName="ALUNO_MATERIAL_ID">                                                            
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID" Visible="false"
                                                    SortExpression="ALUNO_ID" UniqueName="ALUNO_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATERIAL_ID" HeaderText="MATERIAL_ID" Visible="false"
                                                    SortExpression="MATERIAL_ID" UniqueName="MATERIAL_ID">
                                                    <HeaderStyle Width="90px" /> 
                                                    <ItemStyle  Width="90px" /> 
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MTR_DESCRICAO" HeaderText="Descrição" 
                                                    SortExpression="MTR_DESCRICAO" UniqueName="MTR_DESCRICAO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_QTADIQUIRIDA" HeaderText="Qdte." 
                                                    SortExpression="ALM_QTADIQUIRIDA" UniqueName="ALM_QTADIQUIRIDA">
                                                    <HeaderStyle HorizontalAlign="Center" Width="80px" /> 
                                                    <ItemStyle HorizontalAlign="Center" Width="80px" /> 
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_DTADESAO" HeaderText="Data adesão" 
                                                    SortExpression="ALM_DTADESAO" UniqueName="ALM_DTADESAO">
                                                    <HeaderStyle HorizontalAlign="Center" Width="90px" /> 
                                                    <ItemStyle HorizontalAlign="Center" Width="90px" /> 
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="ALM_STEXCLUIDO" HeaderText="ALM_STEXCLUIDO" Visible="false"
                                                    SortExpression="ALM_STEXCLUIDO" UniqueName="ALM_STEXCLUIDO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATERIAL_MODALIDADE_ID" Visible="false"
                                                    HeaderText="MATERIAL_MODALIDADE_ID" SortExpression="MATERIAL_MODALIDADE_ID" 
                                                    UniqueName="MATERIAL_MODALIDADE_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MMD_DESCRICAO" HeaderText="Modalidade" 
                                                    SortExpression="MMD_DESCRICAO" UniqueName="MMD_DESCRICAO">
                                                    <HeaderStyle  Width="120px" /> 
                                                    <ItemStyle  Width="120px" /> 
                                                </telerik:GridBoundColumn>
                                                            
                                                <telerik:GridBoundColumn DataField="PESSOA_ID" HeaderText="PESSOA_ID" Visible="false"
                                                    SortExpression="PESSOA_ID" UniqueName="PESSOA_ID">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="MATRICULAS_ALUNO"  Visible="false"
                                                    HeaderText="MATRICULAS_ALUNO" SortExpression="MATRICULAS_ALUNO" 
                                                    UniqueName="MATRICULAS_ALUNO">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="PES_NOME" HeaderText="PES_NOME"  Visible="false"
                                                    SortExpression="PES_NOME" UniqueName="PES_NOME">
                                                </telerik:GridBoundColumn>
                                                <%-- --%>
                                                <telerik:GridButtonColumn ButtonType="ImageButton"  
                                                    CommandName="Delete" ConfirmDialogType="RadWindow"  
                                                    ConfirmText="Deseja realmente excluir este registro"  
                                                    ImageUrl="../Imagens/grid_delete.png" UniqueName="DeleteColumn"  
                                                    ConfirmTitle="Exclusão de registro" Text="Delete"> 
             
                                                    <HeaderStyle HorizontalAlign="Center" Width="18px" /> 
                                                    <ItemStyle HorizontalAlign="Center" Width="18px" /> 
                                                </telerik:GridButtonColumn> 
                                            </Columns>
                                        </MasterTableView>
                                    </telerik:RadGrid>   
                                    
                                </telerik:RadAjaxPanel>  

                            </div>
            </telerik:RadPageView>            
            <%--==============================================================================
                       EVENTOS
            ==============================================================================--%>            
            <telerik:RadPageView ID="RadPageView7" runat="server">

                <telerik:RadAjaxLoadingPanel ID="ralpEventos" runat="server" Skin="Default">
                            </telerik:RadAjaxLoadingPanel>

                <div style="float:left; margin-left:5px; width:30%; ">
                    <asp:Label ID="lbl_eve_evento_id" runat="server" Text="Evento" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>
                    <asp:RequiredFieldValidator ID="rfv_eve_evento_id" runat="server" ControlToValidate="eve_evento_id"
                        ErrorMessage=" (*)" ForeColor="Red" ValidationGroup="camposObrigatoriosEvento"></asp:RequiredFieldValidator>
                    <telerik:RadComboBox ID="eve_evento_id" runat="server" 
                                    Font-Size="X-Small" Width="100%" DataTextField="EVT_DESCRICAO" 
                                    DataValueField="EVENTO_ID" Filter="Contains" 
                                    EmptyMessage="Selecione" MarkFirstMatch="True" 
                                    EnableLoadOnDemand="True" onitemsrequested="eve_evento_id_ItemsRequested" 
                                    style="margin-bottom: 0px" 
                        onselectedindexchanged="eve_evento_id_SelectedIndexChanged" 
                        AutoPostBack="True" AllowCustomText="True" >                        
                                </telerik:RadComboBox>
                </div>
                <div style="float:left; margin-left:10px; width:27%; margin-top:8px;">
                    <asp:Label ID="lbl_eve_modalidade" runat="server" Text="Modalidade" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                    
                    <telerik:RadTextBox ID="eve_modalidade" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                    <asp:Label ID="lbl_eve_valor" runat="server" Text="Valor (R$)" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                                
                    <telerik:RadTextBox ID="eve_valor" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                <div style="float:left; margin-left:10px; width:11%; margin-top:8px;">
                    <asp:Label ID="lbl_eve_vagasdisp" runat="server" Text="Vagas disponíveis" 
                        Font-Bold="True" Font-Size="X-Small"></asp:Label>                                
                    <telerik:RadTextBox ID="eve_vagasdisp" Runat="server" Font-Size="X-Small" 
                        Width="97%" 
                        ReadOnly="true">
                        <ReadOnlyStyle BackColor="#D6DCDB" />
                    </telerik:RadTextBox>
                </div>
                <div style="float:right; margin-right:5px; width:10%; margin-top:8px;">
                    <asp:Label ID="lbl_eve_valorpago" runat="server" Text="Valor pago" Font-Bold="True" 
                        Font-Size="X-Small"></asp:Label>
                    <telerik:RadNumericTextBox ID="eve_valorpago" runat="server" Font-Size="X-Small"
                                Width="97%" DataType="System.Int32" ReadOnly="false">
                                <NumberFormat DecimalDigits="2" />
                                <ReadOnlyStyle BackColor="#CCCCCC" />
                    </telerik:RadNumericTextBox>                
                </div>
                

                <div style="float:left; margin-left:5px; margin-top:5px; background-color:#C8BE9E; color:#C8BE9E; width:99%">
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbAdiconarEvento" runat="server" 
                            ImageUrl="~/Imagens/botoes_confirmar_pagina.png" 
                            onclick="imgbAdiconarEvento_Click" ValidationGroup="camposObrigatoriosEvento" 
                            ToolTip="Inserir novo Evento" />
                    </div>                                        
                    <div style="float:left; margin-left:2px; margin-top:2px; margin-bottom:2px;">
                        <asp:ImageButton ID="imgbEmitirRecEvento" runat="server" 
                            ImageUrl="~/Imagens/botoes_pagina_imprimir_recibo.png" 
                            onclick="imgbEmitirRecEvento_Click" 
                            ToolTip="Emitir recibo" />
                    </div>
                    <asp:HiddenField ID="hid_ALUNO_EVENTO_ID" runat="server" />
                </div>

                <div style="float:left; margin-left:5px; margin-top:8px; width:100%">
                                <telerik:RadAjaxPanel ID="rapEventos" runat="server" 
                                    Width="100%" HorizontalAlign="NotSet" LoadingPanelID="ralpEventos"
                                    onajaxrequest="rapEventos_AjaxRequest">
                                        
                                        <telerik:RadGrid ID="rdg_EventoAluno" runat="server" 
                                                    DataSourceID="ods_Evento" 
                                                    Skin="Sunset" AllowAutomaticDeletes="True" 
                                            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" 
                                            Font-Size="X-Small" GridLines="None">
                                                    <ClientSettings>
                                                        <Selecting AllowRowSelect="True" />
                                                        <ClientEvents OnRowClick="rdg_rdg_EventoAluno_RowClick" />
                                                    </ClientSettings>
                                                    <MasterTableView AutoGenerateColumns="False" DataSourceID="ods_Evento" ClientDataKeyNames="ALUNO_EVENTO_ID"
                                                        DataKeyNames="ALUNO_EVENTO_ID">
                                                        <RowIndicatorColumn>
                                                            <HeaderStyle Width="20px" />
                                                        </RowIndicatorColumn>
                                                        <ExpandCollapseColumn>
                                                            <HeaderStyle Width="20px" />
                                                        </ExpandCollapseColumn>
                                                        <Columns>
                                                            <telerik:GridBoundColumn DataField="ALUNO_EVENTO_ID" Visible="false"
                                                                HeaderText="ALUNO_EVENTO_ID" SortExpression="ALUNO_EVENTO_ID" 
                                                                UniqueName="ALUNO_EVENTO_ID">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="ALUNO_ID" HeaderText="ALUNO_ID" Visible="false"
                                                                SortExpression="ALUNO_ID" UniqueName="ALUNO_ID">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="EVENTO_ID" HeaderText="Código" 
                                                                SortExpression="EVENTO_ID" UniqueName="EVENTO_ID">
                                                                <HeaderStyle Width="80px" /> 
                                                                <ItemStyle HorizontalAlign="Center" Width="80px" /> 
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="ALV_DATAADESAO" HeaderText="Data adesão" 
                                                                SortExpression="ALV_DATAADESAO" UniqueName="ALV_DATAADESAO">
                                                                <HeaderStyle HorizontalAlign="Center" Width="80px" /> 
                                                                <ItemStyle HorizontalAlign="Center" Width="80px" /> 
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="ALV_VALORPAGO" HeaderText="Valor pago" 
                                                                SortExpression="ALV_VALORPAGO" UniqueName="ALV_VALORPAGO">
                                                                <HeaderStyle HorizontalAlign="Center" Width="90px" /> 
                                                                <ItemStyle HorizontalAlign="Center" Width="90px" /> 
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="EVT_DESCRICAO" HeaderText="Evento" 
                                                                SortExpression="EVT_DESCRICAO" UniqueName="EVT_DESCRICAO">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="EVENTO_MODALIDADE_ID" Visible="false"
                                                                HeaderText="EVENTO_MODALIDADE_ID" SortExpression="EVENTO_MODALIDADE_ID" 
                                                                UniqueName="EVENTO_MODALIDADE_ID">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="EVM_DESCRICAO" HeaderText="Modalidade" 
                                                                SortExpression="EVM_DESCRICAO" UniqueName="EVM_DESCRICAO">
                                                                <HeaderStyle  Width="140px" /> 
                                                                <ItemStyle  Width="140px" /> 
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PESSOA_ID" HeaderText="PESSOA_ID" Visible="false"
                                                                SortExpression="PESSOA_ID" UniqueName="PESSOA_ID">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="MATRICULAS_ALUNO" 
                                                                HeaderText="MATRICULAS_ALUNO" SortExpression="MATRICULAS_ALUNO"  Visible="false"
                                                                UniqueName="MATRICULAS_ALUNO">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridBoundColumn DataField="PES_NOME" HeaderText="PES_NOME"  Visible="false"
                                                                SortExpression="PES_NOME" UniqueName="PES_NOME">
                                                            </telerik:GridBoundColumn>
                                                            <telerik:GridButtonColumn ButtonType="ImageButton"  
                                                                CommandName="Delete" ConfirmDialogType="RadWindow"  
                                                                ConfirmText="Deseja realmente excluir este registro"  
                                                                ImageUrl="../Imagens/grid_delete.png" UniqueName="DeleteColumn"  
                                                                ConfirmTitle="Exclusão de registro" Text="Delete"> 
             
                                                                <HeaderStyle HorizontalAlign="Center" Width="40px" /> 
                                                                <ItemStyle HorizontalAlign="Center" Width="40px" /> 
                                                            </telerik:GridButtonColumn> 

                                                            <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="">
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ID="imgGridImprimirRecibo" runat="server" 
                                                                        ImageUrl="~/Imagens/grid_edit.png" ToolTip="Imprimir comprovante de pagamento" />  
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="18px" />
                                                                <ItemStyle HorizontalAlign="Center" Width="18px"/>
                                                            </telerik:GridTemplateColumn>

                                                        </Columns>
                                                    </MasterTableView>
                                                    <ItemStyle Font-Size="X-Small" />
                                                    <ActiveItemStyle Font-Size="X-Small" />
                                                </telerik:RadGrid>
                                    
                                </telerik:RadAjaxPanel>  

                            </div>

            </telerik:RadPageView>
            </telerik:RadMultiPage>
    </div>
    </form>
</body>
</html>
